how to select all but last columns in python

57

how to select all but last columns in python -

df.iloc[:,:-1]

Comments

Submit
0 Comments